package com.freecloud.javabasics.network.rpc.clent;

import com.freecloud.common.LoggerUtil;
import com.freecloud.javabasics.network.rpc.server.api.IHelloService;

/**
 * @Author: maomao
 * @Date: 2020-03-15 21:37
 */
public class ClientApp {
    public static void main(String[] args) {

        RpcProxyClient rpcProxyClient = new RpcProxyClient();

        IHelloService iHelloService = rpcProxyClient.clientProxy(IHelloService.class,"localhost",8080);
        String result = iHelloService.sayHello("张三");

        LoggerUtil.println(result);
    }
}
